import { CoolController, BaseController } from '@cool-midway/core';
import { TenantAgentEntity } from '../../entity/agent';
import { TenantAgentService } from '../../service/agent';
import { Inject } from '@midwayjs/core';

/**
 * 租户信息
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: TenantAgentEntity,
  service: TenantAgentService,
  pageQueryOp: {
    keyWordLikeFields: ['a.name'],
    fieldEq: ['a.status'],
  },
})
export class AdminTenantAgentController extends BaseController {
  @Inject()
  tenantAgentService: TenantAgentService;
}
